#ifndef UTIMAGE_H
#define UTIMAGE_H


#include "../core/String.h"


struct UTPixel
{
    unsigned char r, g, b, a;
};


struct UTImage
{
	UTImage(const char *fn);
	virtual ~UTImage();

	UTPixel getPixel(int x, int y);
	bool createTGA(const char *fn);

	unsigned char *data;
	unsigned int width;
	unsigned int height;
	unsigned int bpp;
	String fileName;
	bool loaded;
};

#endif // UTIMAGE_H
